package cn.hd.service;

import cn.hd.entity.Productdetail;
import cn.hd.entity.Returnn;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ReturnService {

    //增加
    public int addReturn(Returnn returnn);

    //删除
    public int delReturnn(long returnid);

    //修改
    public int updateReturn(Returnn returnn);

    //根据id查询
    public Returnn selectByIdReturn(long returnid);

    //查询
//    public PageInfo<Returnn> selectReturn(int pagenum, int pagesize,long pid);

    public List<Returnn> selectReturn(long pid);
    //查询
    public List<Returnn> selectReturnById(long pid);
}
